'use strict';

// sass compile
var gulp = require('gulp');
var sass = require('gulp-sass');
var prettify = require('gulp-prettify');
var minifyCss = require("gulp-minify-css");
var rename = require("gulp-rename");
var uglify = require("gulp-uglify");
var rtlcss = require("gulp-rtlcss");
var connect = require('gulp-connect');

//*** Localhost server tast
gulp.task('localhost', function () {
    connect.server();
});

gulp.task('localhost-live', function () {
    connect.server({
        livereload: true
    });
});

//*** SASS compiler task
gulp.task('sass', function () {
    gulp.src('./scss/*.scss').pipe(sass()).pipe(gulp.dest('./css'));
    // gulp.src('./src/global/scss/color.scss').pipe(sass()).pipe(gulp.dest('./dist/global/css'));
});

//*** SASS watch(realtime) compiler task
gulp.task('watch', function () {
    gulp.watch('./scss/*.scss', ['sass']);
});

